I see 'out of memory' errors and crashes inside libvulkan when
creating nodes that have empty bounds and end up in the fallback
paths, like a shadow around an empty text node. Prevent this
by not creating text nodes in that case.
int x_offset, y_offset;
GskRenderNode *node;
GdkRGBA color;
+ PangoRectangle ink_rect;
+
+ /* FIXME: vulkan fallbacks don't deal with empty nodes gracefully */
+ pango_glyph_string_extents (glyphs, font, &ink_rect, NULL);
+ pango_extents_to_pixels (&ink_rect, NULL);
+ if (ink_rect.width == 0 || ink_rect.height == 0)
+ return;
gtk_snapshot_get_offset (crenderer->snapshot, &x_offset, &y_offset);